home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
600 Games
/
600games.iso
/
Aventura
/
TheBearsAdventure.swf
/
scripts
/
frame_6
/
PlaceObject2_43_5
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2005-08-04
|
499 b
|
26 lines
onClipEvent(enterFrame){
var a = value;
dig0.gotoAndStop(a % 10 + 1);
var num_dig = 1;
var i = 1;
while(i < 10)
{
a = Math.floor(a / 10);
if(a == 0)
{
var j = i;
while(i < 10)
{
eval("dig" + i).gotoAndStop(11);
i++;
}
break;
}
eval("dig" + i).gotoAndStop(a % 10 + 1);
num_dig++;
i++;
}
_X = x + (num_dig - 1) * dig_width / 2;
_Y = y;
}